import {
	request
} from '@/utils/request.js' //导入封装好的js文件



//城市搜索

export const citySeach = (data) => {

	return request({
		url: 'https://geoapi.qweather.com/v2/city/lookup',
		method: 'GET',
		data: data
	})
}
export const cityWeather = (data) => {

	return request({
		url: 'https://devapi.qweather.com/v7/weather/now',
		method: 'GET',
		data: data
	})
}

export const cityAir = (data) => {

	return request({
		url: 'https://devapi.qweather.com/v7/air/now',
		method: 'GET',
		data: data
	})
}

export const future = (data) => {

	return request({
		url: 'https://devapi.qweather.com/v7/weather/7d',
		method: 'GET',
		data: data
	})
}

export const rainState = (data) => {

	return request({
		url: 'https://devapi.qweather.com/v7/minutely/5m',
		method: 'GET',
		data: data
	})
}
export const uvIndex = (data) => {

	return request({
		url: 'https://devapi.qweather.com/v7/indices/1d',
		method: 'GET',
		data: data
	})
}